let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start"),
                    Object.defineProperty(o, '__esModule', {
                        value: !0
                    });
                var n = t('ApiUtils'),
                    i = (function() {
                        function t(t, e, o) {
                            for (var n in ((this._attributes = {}), t)) {
                                var i = t[n];
                                i >= 0 && (this._attributes[n] = this.convert(e[i], o[i]));
                            }
                        }
                        return (
                            Object.defineProperty(t.prototype, 'attributes', {
                                get: function get() {
                                    return this._attributes;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (t.prototype.convert = function(t, e) {
                                if (t.indexOf('array') >= 0 || t.indexOf('list') >= 0)
                                    return t.indexOf('array<array') >= 0 ||
                                        t.indexOf('list<list') >= 0 ?
                                        this.convertArray2(t, e) :
                                        this.convertArray1(t, e);
                                var o = parseFloat(e);
                                switch (t.toLocaleLowerCase()) {
                                    case 'int':
                                        return isNaN(o) ? 0 : Math.floor(o);

                                    case 'float':
                                        return isNaN(o) ? 0 : o;

                                    case 'bool':
                                        return o > 0;

                                    case 'string':
                                        return e;

                                    case 'vec2':
                                        return this.convertVec2(e);

                                    case 'vec3':
                                        return this.convertVec3(e);

                                    default:
                                        if (!isNaN(o)) return o;
                                }
                                return e;
                            }),
                            (t.prototype.convertArray1 = function(t, e) {
                                var o;
                                switch (
                                    (void 0 === e && (e = ''), (t = this.getArrayType(t)))
                                ) {
                                    case 'int':
                                        o = this.convertIntArray;
                                        break;

                                    case 'float':
                                        o = this.convertNumberArray;
                                        break;

                                    case 'bool':
                                        o = this.convertBooleanArray;
                                        break;

                                    case 'vec2':
                                        o = this.convertVec2Array;
                                        break;

                                    case 'vec3':
                                        o = this.convertVec3Array;
                                        break;

                                    default:
                                        o = this.convertStringArray;
                                }
                                return o(e);
                            }),
                            (t.prototype.convertArray2 = function(t, e) {
                                if (
                                    (void 0 === e && (e = ''),
                                        (t = this.getArrayType(t)),
                                        0 == e.length)
                                )
                                    return [];
                                for (; 0 == e.indexOf('[');) {
                                    e = e.substring(1, e.length - 1);
                                }
                                if (0 == e.length) return [];
                                for (var o = [], n = e.split('],['), i = 0; i < n.length; i++) {
                                    o.push(this.convertArray1(t, n[i]));
                                }
                                return o;
                            }),
                            (t.prototype.getArrayType = function(t) {
                                for (; t.indexOf('>') >= 0;) {
                                    t = t.substring(0, t.length - 1);
                                }
                                return t.substring(t.lastIndexOf('<') + 1, t.length);
                            }),
                            (t.prototype.convertVec2 = function(t, e) {
                                void 0 === e && (e = ',');
                                var o = t.split(e);
                                return o.length >= 2 ?
                                    n.ApiUtils.v2(parseFloat(o[0]), parseFloat(o[1])) :
                                    n.ApiUtils.v2();
                            }),
                            (t.prototype.convertVec3 = function(t, e) {
                                void 0 === e && (e = ',');
                                var o = t.split(e);
                                return o.length >= 3 ?
                                    n.ApiUtils.v3(
                                        parseFloat(o[0]),
                                        parseFloat(o[1]),
                                        parseFloat(o[2])
                                    ) :
                                    n.ApiUtils.v3();
                            }),
                            (t.prototype.convertNumberArray = function(t, e) {
                                void 0 === e && (e = ',');
                                for (var o = t.split(e), n = [], i = 0; i < o.length; i++) {
                                    n.push(parseFloat(o[i]));
                                }
                                return n;
                            }),
                            (t.prototype.convertIntArray = function(t, e) {
                                if ((void 0 === e && (e = ','), 0 == t.length)) return [];
                                for (var o = t.split(e), n = [], i = 0; i < o.length; i++) {
                                    n.push(Math.floor(parseInt(o[i])));
                                }
                                return n;
                            }),
                            (t.prototype.convertBooleanArray = function(t, e) {
                                if ((void 0 === e && (e = ','), 0 == t.length)) return [];
                                for (var o = t.split(e), n = [], i = 0; i < o.length; i++) {
                                    n.push(parseInt(o[i]) > 0);
                                }
                                return n;
                            }),
                            (t.prototype.convertStringArray = function(t, e) {
                                return (
                                    void 0 === e && (e = ','), 0 == t.length ? [] : t.split(e)
                                );
                            }),
                            (t.prototype.convertVec2Array = function(t, e) {
                                if ((void 0 === e && (e = ','), 0 == t.length)) return [];
                                0 == t.indexOf('(') && (t = t.substring(1, t.length - 1));
                                for (
                                    var o, i = t.split('),('), r = [], a = 0; a < i.length; a++
                                ) {
                                    (o = i[a].split(e)).length >= 2 &&
                                        r.push(n.ApiUtils.v2(parseFloat(o[0]), parseFloat(o[1])));
                                }
                                return r;
                            }),
                            (t.prototype.convertVec3Array = function(t, e) {
                                if ((void 0 === e && (e = ','), 0 == t.length)) return [];
                                0 == t.indexOf('(') && (t = t.substring(1, t.length - 1));
                                for (
                                    var o, i = t.split('),('), r = [], a = 0; a < i.length; a++
                                ) {
                                    (o = i[a].split(e)).length >= 3 &&
                                        r.push(
                                            n.ApiUtils.v3(
                                                parseFloat(o[0]),
                                                parseFloat(o[1]),
                                                parseFloat(o[2])
                                            )
                                        );
                                }
                                return r;
                            }),
                            t
                        );
                    })();
                (o.default = i), console.log("end");
            module.exports =  e.exports;